﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebFrontEnd
{
    public partial class SendMail : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string id = Request["id"];
            int idNum = 0;
            if (id == null || !int.TryParse(id, out idNum))
            {
                Response.Redirect("Login.aspx");
            }
            BL.ResendActivationEmail(idNum);
            Session["flash"] = YorKinHTMLHelper.CreateBootstrapAlert("Another email was sent your way!", "alert-success");
            Response.Redirect("Login.aspx");
        }
    }
}